<script setup name="superAdm">
import { ref } from 'vue';
import { useSuperAdmMenuLoading } from '@/stores/superAdministrator.js';
import superAdmMenuBar from './superAdmMenuBar.vue';
import superAdmContent from './superAdmContent.vue';
import comHeader from '@/views/comHeader.vue';
const superAdmMenuLoading = useSuperAdmMenuLoading();
//头像选项
const avaterData = ref({
    imgUrl: '',
    name: '管理员'
})
</script>

<template>
    <div class="superAdm">
        <comHeader :avaterData="avaterData"></comHeader>
        <div class="superAdmLayout">
            <superAdmMenuBar></superAdmMenuBar>
            <superAdmContent 
            v-loading="superAdmMenuLoading.menuLoading" 
            element-loading-text="数据加载中..."
            ></superAdmContent>
        </div>
    </div>
</template>

<style lang="scss">
.superAdm {
    width: 100vw;
    height: 100vh;
    .superAdmLayout {
        width: 100%;
        height: calc(100% - 80px);
        display: flex;
        justify-content: space-between;
        background-color: #f0f2f5;
    }
}
</style>